WindowInsetsAnimationCompat

Class representing an animation of a set of windows that cause insets.

Constructors

Link copied to clipboard
constructor(typeMask: Int, @Nullable interpolator: Interpolator, durationMillis: Long)
Creates a new WindowInsetsAnimationCompat object.

Types

Link copied to clipboard
Class representing the range of an WindowInsetsAnimationCompat
Link copied to clipboard
abstract class Callback
Interface that allows the application to listen to animation events for windows that cause insets.

Functions

Link copied to clipboard
@FloatRange(from = 0.0, to = 1.0)
open fun getAlpha(): Float
Retrieves the translucency of the windows that are animating.
Link copied to clipboard
Link copied to clipboard
@FloatRange(from = 0.0, to = 1.0)
open fun getFraction(): Float
Returns the raw fractional progress of this animation between start state of the animation and the end state of the animation.
Link copied to clipboard
Returns the interpolated fractional progress of this animation between start state of the animation and the end state of the animation.
Link copied to clipboard
Retrieves the interpolator used for this animation, or null if this animation doesn't follow an interpolation curved.
Link copied to clipboard
open fun getTypeMask(): Int
Link copied to clipboard
open fun setAlpha(@FloatRange(from = 0.0, to = 1.0) alpha: Float)
Sets the translucency of the windows that are animating.
Link copied to clipboard
open fun setFraction(@FloatRange(from = 0.0, to = 1.0) fraction: Float)
Set fraction of the progress if Type animation is controlled by the app.